package com.nwpu.am.service.impl;

import com.nwpu.am.mapper.WarehouseMapper;
import com.nwpu.am.pojo.entity.Warehouse;
import com.nwpu.am.service.WarehouseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class WarehouseServiceImpl implements WarehouseService {
    @Resource
    private WarehouseMapper warehouseMapper;
    @Override
    public Warehouse findWarehouseByName(String warehouseName) {
        return warehouseMapper.selectWarehouseByName(warehouseName);
    }
}
